module.exports=(ids=['id'])=>async (ctx,next)=>{
    for(var id of ids){
        let val=ctx.params[id];
        if(!val || !/^[a-zA-Z0-9]{24}$/.test(val))return ctx.body={code:400,msg:'Id错误'};
    }
    await next();
};